﻿/************************************************************************************
* Copyright (c) 2019 All Rights Reserved.
*命名空间：Merge.BLL
*文件名： CaverBuffData
*创建人： Liebeskind
*创建时间：2019/6/28 9:31:32
*描述
*=====================================================================
*修改标记
*修改时间：2019/6/28 9:31:32
*修改人：Liebeskind
*描述：
************************************************************************************/
using Commonality.Model.Classify;
using Commonality.Model.Xml;
using System;
using System.Windows.Forms;

namespace Merge.BLL
{
    public class CaverBuffData
    {
        public static string caverBuffDataFeilName = Application.StartupPath + @"\CaverBuffData\CaverBuffData.xml";


        public static string caverBuffDataA1FeilName = Application.StartupPath + @"\CaverBuffData\CaverBuffDataA1.xml";
        public static string caverBuffDataA2FeilName = Application.StartupPath + @"\CaverBuffData\CaverBuffDataA2.xml";
        public static string caverBuffDataA3FeilName = Application.StartupPath + @"\CaverBuffData\CaverBuffDataA3.xml";
        public static string caverBuffDataB1FeilName = Application.StartupPath + @"\CaverBuffData\CaverBuffDataB1.xml";
        public static string caverBuffDataB2FeilName = Application.StartupPath + @"\CaverBuffData\CaverBuffDataB2.xml";
        public static string caverBuffDataB3FeilName = Application.StartupPath + @"\CaverBuffData\CaverBuffDataB3.xml";
        #region 缓存数据加载
        /// <summary>
        /// 仓的缓存数据加载
        /// </summary>
        public static void CaverBuffDataLoad()
        {
            try
            {
                string SNpi;    //规划值
                string SNi;     //实际值
                                //A
                #region 仓A11
                //Caver.CaveA11.sEigenvector = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "IPC", "CaverBuffData", "CaverA11", "sEigenvector");
                Caver.CaveA11.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA11", "Eigenvector", "LINE"));
                Caver.CaveA11.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA11", "Eigenvector", "PN");
                Caver.CaveA11.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA11", "Eigenvector", "Remark"));
                Caver.CaveA11.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA11", "Eigenvector", "KCAndBF"));
                Caver.CaveA11.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA11", "Eigenvector", "Storeroom");
                Caver.CaveA11.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA11", "Eigenvector", "Augmented1");
                Caver.CaveA11.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA11", "Eigenvector", "Augmented2");
                Caver.CaveA11.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA11", "Eigenvector", "Augmented3");
                Caver.CaveA11.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA11", "Eigenvector", "Augmented4");
                Caver.CaveA11.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA11", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA11", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA11.ListSNProgramme.Add(SNpi);
                        Caver.CaveA11.ContProgramme = Caver.CaveA11.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA11", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA11.ListSN.Add(SNpi);
                        Caver.CaveA11.Cont = Caver.CaveA11.ListSN.Count;
                    }
                }
                #endregion
                #region 仓A12
                Caver.CaveA12.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA12", "Eigenvector", "LINE"));
                Caver.CaveA12.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA12", "Eigenvector", "PN");
                Caver.CaveA12.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA12", "Eigenvector", "Remark"));
                Caver.CaveA12.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA12", "Eigenvector", "KCAndBF"));
                Caver.CaveA12.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA12", "Eigenvector", "Storeroom");
                Caver.CaveA12.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA12", "Eigenvector", "Augmented1");
                Caver.CaveA12.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA12", "Eigenvector", "Augmented2");
                Caver.CaveA12.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA12", "Eigenvector", "Augmented3");
                Caver.CaveA12.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA12", "Eigenvector", "Augmented4");
                Caver.CaveA12.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA12", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA12", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA12.ListSNProgramme.Add(SNpi);
                        Caver.CaveA12.ContProgramme = Caver.CaveA12.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA12", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA12.ListSN.Add(SNpi);
                        Caver.CaveA12.Cont = Caver.CaveA12.ListSN.Count;
                    }
                }
                #endregion
                #region 仓A13
                Caver.CaveA13.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA13", "Eigenvector", "LINE"));
                Caver.CaveA13.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA13", "Eigenvector", "PN");
                Caver.CaveA13.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA13", "Eigenvector", "Remark"));
                Caver.CaveA13.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA13", "Eigenvector", "KCAndBF"));
                Caver.CaveA13.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA13", "Eigenvector", "Storeroom");
                Caver.CaveA13.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA13", "Eigenvector", "Augmented1");
                Caver.CaveA13.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA13", "Eigenvector", "Augmented2");
                Caver.CaveA13.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA13", "Eigenvector", "Augmented3");
                Caver.CaveA13.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA13", "Eigenvector", "Augmented4");
                Caver.CaveA13.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA13", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA13", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA13.ListSNProgramme.Add(SNpi);
                        Caver.CaveA13.ContProgramme = Caver.CaveA13.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA13", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA13.ListSN.Add(SNpi);
                        Caver.CaveA13.Cont = Caver.CaveA13.ListSN.Count;
                    }
                }
                #endregion
                #region 仓A14
                Caver.CaveA14.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA14", "Eigenvector", "LINE"));
                Caver.CaveA14.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA14", "Eigenvector", "PN");
                Caver.CaveA14.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA14", "Eigenvector", "Remark"));
                Caver.CaveA14.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA14", "Eigenvector", "KCAndBF"));
                Caver.CaveA14.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA14", "Eigenvector", "Storeroom");
                Caver.CaveA14.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA14", "Eigenvector", "Augmented1");
                Caver.CaveA14.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA14", "Eigenvector", "Augmented2");
                Caver.CaveA14.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA14", "Eigenvector", "Augmented3");
                Caver.CaveA14.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA14", "Eigenvector", "Augmented4");
                Caver.CaveA14.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA14", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA14", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA14.ListSNProgramme.Add(SNpi);
                        Caver.CaveA14.ContProgramme = Caver.CaveA14.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA14", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA14.ListSN.Add(SNpi);
                        Caver.CaveA14.Cont = Caver.CaveA14.ListSN.Count;
                    }
                }
                #endregion
                #region 仓A15
                Caver.CaveA15.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA15", "Eigenvector", "LINE"));
                Caver.CaveA15.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA15", "Eigenvector", "PN");
                Caver.CaveA15.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA15", "Eigenvector", "Remark"));
                Caver.CaveA15.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA15", "Eigenvector", "KCAndBF"));
                Caver.CaveA15.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA15", "Eigenvector", "Storeroom");
                Caver.CaveA15.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA15", "Eigenvector", "Augmented1");
                Caver.CaveA15.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA15", "Eigenvector", "Augmented2");
                Caver.CaveA15.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA15", "Eigenvector", "Augmented3");
                Caver.CaveA15.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA15", "Eigenvector", "Augmented4");
                Caver.CaveA15.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA15", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA15", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA15.ListSNProgramme.Add(SNpi);
                        Caver.CaveA15.ContProgramme = Caver.CaveA15.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA1FeilName, "CaverBuffData", "CaverA15", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA15.ListSN.Add(SNpi);
                        Caver.CaveA15.Cont = Caver.CaveA15.ListSN.Count;
                    }
                }
                #endregion

                #region 仓A21
                Caver.CaveA21.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA21", "Eigenvector", "LINE"));
                Caver.CaveA21.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA21", "Eigenvector", "PN");
                Caver.CaveA21.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA21", "Eigenvector", "Remark"));
                Caver.CaveA21.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA21", "Eigenvector", "KCAndBF"));
                Caver.CaveA21.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA21", "Eigenvector", "Storeroom");
                Caver.CaveA21.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA21", "Eigenvector", "Augmented1");
                Caver.CaveA21.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA21", "Eigenvector", "Augmented2");
                Caver.CaveA21.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA21", "Eigenvector", "Augmented3");
                Caver.CaveA21.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA21", "Eigenvector", "Augmented4");
                Caver.CaveA21.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA21", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA21", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA21.ListSNProgramme.Add(SNpi);
                        Caver.CaveA21.ContProgramme = Caver.CaveA21.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA21", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA21.ListSN.Add(SNpi);
                        Caver.CaveA21.Cont = Caver.CaveA21.ListSN.Count;
                    }
                }
                #endregion
                #region 仓A22
                Caver.CaveA22.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA22", "Eigenvector", "LINE"));
                Caver.CaveA22.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA22", "Eigenvector", "PN");
                Caver.CaveA22.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA22", "Eigenvector", "Remark"));
                Caver.CaveA22.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA22", "Eigenvector", "KCAndBF"));
                Caver.CaveA22.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA22", "Eigenvector", "Storeroom");
                Caver.CaveA22.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA22", "Eigenvector", "Augmented1");
                Caver.CaveA22.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA22", "Eigenvector", "Augmented2");
                Caver.CaveA22.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA22", "Eigenvector", "Augmented3");
                Caver.CaveA22.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA22", "Eigenvector", "Augmented4");
                Caver.CaveA22.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA22", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA22", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA22.ListSNProgramme.Add(SNpi);
                        Caver.CaveA22.ContProgramme = Caver.CaveA22.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA22", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA22.ListSN.Add(SNpi);
                        Caver.CaveA22.Cont = Caver.CaveA22.ListSN.Count;
                    }
                }
                #endregion
                #region 仓A23
                Caver.CaveA23.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA23", "Eigenvector", "LINE"));
                Caver.CaveA23.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA23", "Eigenvector", "PN");
                Caver.CaveA23.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA23", "Eigenvector", "Remark"));
                Caver.CaveA23.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA23", "Eigenvector", "KCAndBF"));
                Caver.CaveA23.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA23", "Eigenvector", "Storeroom");
                Caver.CaveA23.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA23", "Eigenvector", "Augmented1");
                Caver.CaveA23.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA23", "Eigenvector", "Augmented2");
                Caver.CaveA23.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA23", "Eigenvector", "Augmented3");
                Caver.CaveA23.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA23", "Eigenvector", "Augmented4");
                Caver.CaveA23.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA23", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA23", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA23.ListSNProgramme.Add(SNpi);
                        Caver.CaveA23.ContProgramme = Caver.CaveA23.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA23", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA23.ListSN.Add(SNpi);
                        Caver.CaveA23.Cont = Caver.CaveA23.ListSN.Count;
                    }
                }
                #endregion
                #region 仓A24
                Caver.CaveA24.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA24", "Eigenvector", "LINE"));
                Caver.CaveA24.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA24", "Eigenvector", "PN");
                Caver.CaveA24.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA24", "Eigenvector", "Remark"));
                Caver.CaveA24.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA24", "Eigenvector", "KCAndBF"));
                Caver.CaveA24.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA24", "Eigenvector", "Storeroom");
                Caver.CaveA24.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA24", "Eigenvector", "Augmented1");
                Caver.CaveA24.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA24", "Eigenvector", "Augmented2");
                Caver.CaveA24.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA24", "Eigenvector", "Augmented3");
                Caver.CaveA24.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA24", "Eigenvector", "Augmented4");
                Caver.CaveA24.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA24", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA24", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA24.ListSNProgramme.Add(SNpi);
                        Caver.CaveA24.ContProgramme = Caver.CaveA24.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA24", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA24.ListSN.Add(SNpi);
                        Caver.CaveA24.Cont = Caver.CaveA24.ListSN.Count;
                    }
                }
                #endregion
                #region 仓A25
                //Caver.CaveA11.sEigenvector = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName,  "CaverBuffData", "CaverA11", "sEigenvector");
                Caver.CaveA25.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA25", "Eigenvector", "LINE"));
                Caver.CaveA25.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA25", "Eigenvector", "PN");
                Caver.CaveA25.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA25", "Eigenvector", "Remark"));
                Caver.CaveA25.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA25", "Eigenvector", "KCAndBF"));
                Caver.CaveA25.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA25", "Eigenvector", "Storeroom");
                Caver.CaveA25.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA25", "Eigenvector", "Augmented1");
                Caver.CaveA25.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA25", "Eigenvector", "Augmented2");
                Caver.CaveA25.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA25", "Eigenvector", "Augmented3");
                Caver.CaveA25.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA25", "Eigenvector", "Augmented4");
                Caver.CaveA25.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA25", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA25", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA25.ListSNProgramme.Add(SNpi);
                        Caver.CaveA25.ContProgramme = Caver.CaveA25.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA2FeilName, "CaverBuffData", "CaverA25", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA25.ListSN.Add(SNpi);
                        Caver.CaveA25.Cont = Caver.CaveA25.ListSN.Count;
                    }
                }
                #endregion

                #region 仓A31
                Caver.CaveA31.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA31", "Eigenvector", "LINE"));
                Caver.CaveA31.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA31", "Eigenvector", "PN");
                Caver.CaveA31.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA31", "Eigenvector", "Remark"));
                Caver.CaveA31.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA31", "Eigenvector", "KCAndBF"));
                Caver.CaveA31.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA31", "Eigenvector", "Storeroom");
                Caver.CaveA31.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA31", "Eigenvector", "Augmented1");
                Caver.CaveA31.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA31", "Eigenvector", "Augmented2");
                Caver.CaveA31.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA31", "Eigenvector", "Augmented3");
                Caver.CaveA31.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA31", "Eigenvector", "Augmented4");
                Caver.CaveA31.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA31", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA31", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA31.ListSNProgramme.Add(SNpi);
                        Caver.CaveA31.ContProgramme = Caver.CaveA31.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA31", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA31.ListSN.Add(SNpi);
                        Caver.CaveA31.Cont = Caver.CaveA31.ListSN.Count;
                    }
                }
                #endregion
                #region 仓A32
                Caver.CaveA32.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA32", "Eigenvector", "LINE"));
                Caver.CaveA32.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA32", "Eigenvector", "PN");
                Caver.CaveA32.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA32", "Eigenvector", "Remark"));
                Caver.CaveA32.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA32", "Eigenvector", "KCAndBF"));
                Caver.CaveA32.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA32", "Eigenvector", "Storeroom");
                Caver.CaveA32.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA32", "Eigenvector", "Augmented1");
                Caver.CaveA32.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA32", "Eigenvector", "Augmented2");
                Caver.CaveA32.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA32", "Eigenvector", "Augmented3");
                Caver.CaveA32.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA32", "Eigenvector", "Augmented4");
                Caver.CaveA32.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA32", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA32", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA32.ListSNProgramme.Add(SNpi);
                        Caver.CaveA32.ContProgramme = Caver.CaveA32.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA32", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA32.ListSN.Add(SNpi);
                        Caver.CaveA32.Cont = Caver.CaveA32.ListSN.Count;
                    }
                }
                #endregion
                #region 仓A33
                Caver.CaveA33.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA33", "Eigenvector", "LINE"));
                Caver.CaveA33.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA33", "Eigenvector", "PN");
                Caver.CaveA33.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA33", "Eigenvector", "Remark"));
                Caver.CaveA33.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA33", "Eigenvector", "KCAndBF"));
                Caver.CaveA33.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA33", "Eigenvector", "Storeroom");
                Caver.CaveA33.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA33", "Eigenvector", "Augmented1");
                Caver.CaveA33.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA33", "Eigenvector", "Augmented2");
                Caver.CaveA33.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA33", "Eigenvector", "Augmented3");
                Caver.CaveA33.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA33", "Eigenvector", "Augmented4");
                Caver.CaveA33.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA33", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA33", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA33.ListSNProgramme.Add(SNpi);
                        Caver.CaveA33.ContProgramme = Caver.CaveA33.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA33", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA33.ListSN.Add(SNpi);
                        Caver.CaveA33.Cont = Caver.CaveA33.ListSN.Count;
                    }
                }
                #endregion
                #region 仓A34
                Caver.CaveA34.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA34", "Eigenvector", "LINE"));
                Caver.CaveA34.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA34", "Eigenvector", "PN");
                Caver.CaveA34.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA34", "Eigenvector", "Remark"));
                Caver.CaveA34.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA34", "Eigenvector", "KCAndBF"));
                Caver.CaveA34.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA34", "Eigenvector", "Storeroom");
                Caver.CaveA34.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA34", "Eigenvector", "Augmented1");
                Caver.CaveA34.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA34", "Eigenvector", "Augmented2");
                Caver.CaveA34.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA34", "Eigenvector", "Augmented3");
                Caver.CaveA34.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA34", "Eigenvector", "Augmented4");
                Caver.CaveA34.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA34", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA34", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA34.ListSNProgramme.Add(SNpi);
                        Caver.CaveA34.ContProgramme = Caver.CaveA34.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA34", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA34.ListSN.Add(SNpi);
                        Caver.CaveA34.Cont = Caver.CaveA34.ListSN.Count;
                    }
                }
                #endregion
                #region 仓A35
                Caver.CaveA35.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA35", "Eigenvector", "LINE"));
                Caver.CaveA35.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA35", "Eigenvector", "PN");
                Caver.CaveA35.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA35", "Eigenvector", "Remark"));
                Caver.CaveA35.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA35", "Eigenvector", "KCAndBF"));
                Caver.CaveA35.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA35", "Eigenvector", "Storeroom");
                Caver.CaveA35.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA35", "Eigenvector", "Augmented1");
                Caver.CaveA35.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA35", "Eigenvector", "Augmented2");
                Caver.CaveA35.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA35", "Eigenvector", "Augmented3");
                Caver.CaveA35.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA35", "Eigenvector", "Augmented4");
                Caver.CaveA35.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA35", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA35", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveA35.ListSNProgramme.Add(SNpi);
                        Caver.CaveA35.ContProgramme = Caver.CaveA35.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataA3FeilName, "CaverBuffData", "CaverA35", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveA35.ListSN.Add(SNpi);
                        Caver.CaveA35.Cont = Caver.CaveA35.ListSN.Count;
                    }
                }
                #endregion

                //B
                #region 仓B11
                //Caver.CaveB11.sEigenvector = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "IPC", "CaverBuffData", "CaverB11", "sEigenvector");
                Caver.CaveB11.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB11", "Eigenvector", "LINE"));
                Caver.CaveB11.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB11", "Eigenvector", "PN");
                Caver.CaveB11.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB11", "Eigenvector", "Remark"));
                Caver.CaveB11.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB11", "Eigenvector", "KCAndBF"));
                Caver.CaveB11.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB11", "Eigenvector", "Storeroom");
                Caver.CaveB11.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB11", "Eigenvector", "Augmented1");
                Caver.CaveB11.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB11", "Eigenvector", "Augmented2");
                Caver.CaveB11.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB11", "Eigenvector", "Augmented3");
                Caver.CaveB11.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB11", "Eigenvector", "Augmented4");
                Caver.CaveB11.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB11", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB11", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB11.ListSNProgramme.Add(SNpi);
                        Caver.CaveB11.ContProgramme = Caver.CaveB11.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB11", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB11.ListSN.Add(SNpi);
                        Caver.CaveB11.Cont = Caver.CaveB11.ListSN.Count;
                    }
                }
                #endregion
                #region 仓B12
                Caver.CaveB12.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB12", "Eigenvector", "LINE"));
                Caver.CaveB12.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB12", "Eigenvector", "PN");
                Caver.CaveB12.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB12", "Eigenvector", "Remark"));
                Caver.CaveB12.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB12", "Eigenvector", "KCAndBF"));
                Caver.CaveB12.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB12", "Eigenvector", "Storeroom");
                Caver.CaveB12.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB12", "Eigenvector", "Augmented1");
                Caver.CaveB12.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB12", "Eigenvector", "Augmented2");
                Caver.CaveB12.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB12", "Eigenvector", "Augmented3");
                Caver.CaveB12.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB12", "Eigenvector", "Augmented4");
                Caver.CaveB12.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB12", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB12", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB12.ListSNProgramme.Add(SNpi);
                        Caver.CaveB12.ContProgramme = Caver.CaveB12.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB12", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB12.ListSN.Add(SNpi);
                        Caver.CaveB12.Cont = Caver.CaveB12.ListSN.Count;
                    }
                }
                #endregion
                #region 仓B13
                Caver.CaveB13.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB13", "Eigenvector", "LINE"));
                Caver.CaveB13.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB13", "Eigenvector", "PN");
                Caver.CaveB13.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB13", "Eigenvector", "Remark"));
                Caver.CaveB13.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB13", "Eigenvector", "KCAndBF"));
                Caver.CaveB13.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB13", "Eigenvector", "Storeroom");
                Caver.CaveB13.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB13", "Eigenvector", "Augmented1");
                Caver.CaveB13.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB13", "Eigenvector", "Augmented2");
                Caver.CaveB13.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB13", "Eigenvector", "Augmented3");
                Caver.CaveB13.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB13", "Eigenvector", "Augmented4");
                Caver.CaveB13.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB13", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB13", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB13.ListSNProgramme.Add(SNpi);
                        Caver.CaveB13.ContProgramme = Caver.CaveB13.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB13", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB13.ListSN.Add(SNpi);
                        Caver.CaveB13.Cont = Caver.CaveB13.ListSN.Count;
                    }
                }
                #endregion
                #region 仓B14
                Caver.CaveB14.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB14", "Eigenvector", "LINE"));
                Caver.CaveB14.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB14", "Eigenvector", "PN");
                Caver.CaveB14.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB14", "Eigenvector", "Remark"));
                Caver.CaveB14.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB14", "Eigenvector", "KCAndBF"));
                Caver.CaveB14.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB14", "Eigenvector", "Storeroom");
                Caver.CaveB14.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB14", "Eigenvector", "Augmented1");
                Caver.CaveB14.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB14", "Eigenvector", "Augmented2");
                Caver.CaveB14.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB14", "Eigenvector", "Augmented3");
                Caver.CaveB14.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB14", "Eigenvector", "Augmented4");
                Caver.CaveB14.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB14", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB14", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB14.ListSNProgramme.Add(SNpi);
                        Caver.CaveB14.ContProgramme = Caver.CaveB14.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB14", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB14.ListSN.Add(SNpi);
                        Caver.CaveB14.Cont = Caver.CaveB14.ListSN.Count;
                    }
                }
                #endregion
                #region 仓B15
                Caver.CaveB15.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB15", "Eigenvector", "LINE"));
                Caver.CaveB15.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB15", "Eigenvector", "PN");
                Caver.CaveB15.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB15", "Eigenvector", "Remark"));
                Caver.CaveB15.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB15", "Eigenvector", "KCAndBF"));
                Caver.CaveB15.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB15", "Eigenvector", "Storeroom");
                Caver.CaveB15.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB15", "Eigenvector", "Augmented1");
                Caver.CaveB15.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB15", "Eigenvector", "Augmented2");
                Caver.CaveB15.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB15", "Eigenvector", "Augmented3");
                Caver.CaveB15.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB15", "Eigenvector", "Augmented4");
                Caver.CaveB15.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB15", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB15", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB15.ListSNProgramme.Add(SNpi);
                        Caver.CaveB15.ContProgramme = Caver.CaveB15.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB1FeilName, "CaverBuffData", "CaverB15", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB15.ListSN.Add(SNpi);
                        Caver.CaveB15.Cont = Caver.CaveB15.ListSN.Count;
                    }
                }
                #endregion

                #region 仓B21
                Caver.CaveB21.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB21", "Eigenvector", "LINE"));
                Caver.CaveB21.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB21", "Eigenvector", "PN");
                Caver.CaveB21.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB21", "Eigenvector", "Remark"));
                Caver.CaveB21.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB21", "Eigenvector", "KCAndBF"));
                Caver.CaveB21.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB21", "Eigenvector", "Storeroom");
                Caver.CaveB21.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB21", "Eigenvector", "Augmented1");
                Caver.CaveB21.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB21", "Eigenvector", "Augmented2");
                Caver.CaveB21.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB21", "Eigenvector", "Augmented3");
                Caver.CaveB21.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB21", "Eigenvector", "Augmented4");
                Caver.CaveB21.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB21", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB21", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB21.ListSNProgramme.Add(SNpi);
                        Caver.CaveB21.ContProgramme = Caver.CaveB21.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB21", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB21.ListSN.Add(SNpi);
                        Caver.CaveB21.Cont = Caver.CaveB21.ListSN.Count;
                    }
                }
                #endregion
                #region 仓B22
                Caver.CaveB22.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB22", "Eigenvector", "LINE"));
                Caver.CaveB22.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB22", "Eigenvector", "PN");
                Caver.CaveB22.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB22", "Eigenvector", "Remark"));
                Caver.CaveB22.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB22", "Eigenvector", "KCAndBF"));
                Caver.CaveB22.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB22", "Eigenvector", "Storeroom");
                Caver.CaveB22.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB22", "Eigenvector", "Augmented1");
                Caver.CaveB22.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB22", "Eigenvector", "Augmented2");
                Caver.CaveB22.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB22", "Eigenvector", "Augmented3");
                Caver.CaveB22.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB22", "Eigenvector", "Augmented4");
                Caver.CaveB22.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB22", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB22", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB22.ListSNProgramme.Add(SNpi);
                        Caver.CaveB22.ContProgramme = Caver.CaveB22.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB22", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB22.ListSN.Add(SNpi);
                        Caver.CaveB22.Cont = Caver.CaveB22.ListSN.Count;
                    }
                }
                #endregion
                #region 仓B23
                Caver.CaveB23.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB23", "Eigenvector", "LINE"));
                Caver.CaveB23.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB23", "Eigenvector", "PN");
                Caver.CaveB23.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB23", "Eigenvector", "Remark"));
                Caver.CaveB23.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB23", "Eigenvector", "KCAndBF"));
                Caver.CaveB23.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB23", "Eigenvector", "Storeroom");
                Caver.CaveB23.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB23", "Eigenvector", "Augmented1");
                Caver.CaveB23.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB23", "Eigenvector", "Augmented2");
                Caver.CaveB23.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB23", "Eigenvector", "Augmented3");
                Caver.CaveB23.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB23", "Eigenvector", "Augmented4");
                Caver.CaveB23.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB23", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB23", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB23.ListSNProgramme.Add(SNpi);
                        Caver.CaveB23.ContProgramme = Caver.CaveB23.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB23", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB23.ListSN.Add(SNpi);
                        Caver.CaveB23.Cont = Caver.CaveB23.ListSN.Count;
                    }
                }
                #endregion
                #region 仓B24
                Caver.CaveB24.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB24", "Eigenvector", "LINE"));
                Caver.CaveB24.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB24", "Eigenvector", "PN");
                Caver.CaveB24.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB24", "Eigenvector", "Remark"));
                Caver.CaveB24.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB24", "Eigenvector", "KCAndBF"));
                Caver.CaveB24.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB24", "Eigenvector", "Storeroom");
                Caver.CaveB24.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB24", "Eigenvector", "Augmented1");
                Caver.CaveB24.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB24", "Eigenvector", "Augmented2");
                Caver.CaveB24.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB24", "Eigenvector", "Augmented3");
                Caver.CaveB24.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB24", "Eigenvector", "Augmented4");
                Caver.CaveB24.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB24", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB24", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB24.ListSNProgramme.Add(SNpi);
                        Caver.CaveB24.ContProgramme = Caver.CaveB24.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB24", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB24.ListSN.Add(SNpi);
                        Caver.CaveB24.Cont = Caver.CaveB24.ListSN.Count;
                    }
                }
                #endregion
                #region 仓B25
                //Caver.CaveB11.sEigenvector = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName,  "CaverBuffData", "CaverB11", "sEigenvector");
                Caver.CaveB25.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB25", "Eigenvector", "LINE"));
                Caver.CaveB25.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB25", "Eigenvector", "PN");
                Caver.CaveB25.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB25", "Eigenvector", "Remark"));
                Caver.CaveB25.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB25", "Eigenvector", "KCAndBF"));
                Caver.CaveB25.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB25", "Eigenvector", "Storeroom");
                Caver.CaveB25.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB25", "Eigenvector", "Augmented1");
                Caver.CaveB25.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB25", "Eigenvector", "Augmented2");
                Caver.CaveB25.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB25", "Eigenvector", "Augmented3");
                Caver.CaveB25.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB25", "Eigenvector", "Augmented4");
                Caver.CaveB25.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB25", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB25", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB25.ListSNProgramme.Add(SNpi);
                        Caver.CaveB25.ContProgramme = Caver.CaveB25.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB2FeilName, "CaverBuffData", "CaverB25", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB25.ListSN.Add(SNpi);
                        Caver.CaveB25.Cont = Caver.CaveB25.ListSN.Count;
                    }
                }
                #endregion

                #region 仓B31
                Caver.CaveB31.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB31", "Eigenvector", "LINE"));
                Caver.CaveB31.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB31", "Eigenvector", "PN");
                Caver.CaveB31.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB31", "Eigenvector", "Remark"));
                Caver.CaveB31.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB31", "Eigenvector", "KCAndBF"));
                Caver.CaveB31.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB31", "Eigenvector", "Storeroom");
                Caver.CaveB31.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB31", "Eigenvector", "Augmented1");
                Caver.CaveB31.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB31", "Eigenvector", "Augmented2");
                Caver.CaveB31.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB31", "Eigenvector", "Augmented3");
                Caver.CaveB31.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB31", "Eigenvector", "Augmented4");
                Caver.CaveB31.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB31", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB31", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB31.ListSNProgramme.Add(SNpi);
                        Caver.CaveB31.ContProgramme = Caver.CaveB31.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB31", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB31.ListSN.Add(SNpi);
                        Caver.CaveB31.Cont = Caver.CaveB31.ListSN.Count;
                    }
                }
                #endregion
                #region 仓B32
                Caver.CaveB32.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB32", "Eigenvector", "LINE"));
                Caver.CaveB32.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB32", "Eigenvector", "PN");
                Caver.CaveB32.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB32", "Eigenvector", "Remark"));
                Caver.CaveB32.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB32", "Eigenvector", "KCAndBF"));
                Caver.CaveB32.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB32", "Eigenvector", "Storeroom");
                Caver.CaveB32.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB32", "Eigenvector", "Augmented1");
                Caver.CaveB32.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB32", "Eigenvector", "Augmented2");
                Caver.CaveB32.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB32", "Eigenvector", "Augmented3");
                Caver.CaveB32.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB32", "Eigenvector", "Augmented4");
                Caver.CaveB32.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB32", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB32", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB32.ListSNProgramme.Add(SNpi);
                        Caver.CaveB32.ContProgramme = Caver.CaveB32.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB32", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB32.ListSN.Add(SNpi);
                        Caver.CaveB32.Cont = Caver.CaveB32.ListSN.Count;
                    }
                }
                #endregion
                #region 仓B33
                Caver.CaveB33.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB33", "Eigenvector", "LINE"));
                Caver.CaveB33.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB33", "Eigenvector", "PN");
                Caver.CaveB33.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB33", "Eigenvector", "Remark"));
                Caver.CaveB33.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB33", "Eigenvector", "KCAndBF"));
                Caver.CaveB33.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB33", "Eigenvector", "Storeroom");
                Caver.CaveB33.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB33", "Eigenvector", "Augmented1");
                Caver.CaveB33.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB33", "Eigenvector", "Augmented2");
                Caver.CaveB33.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB33", "Eigenvector", "Augmented3");
                Caver.CaveB33.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB33", "Eigenvector", "Augmented4");
                Caver.CaveB33.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB33", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB33", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB33.ListSNProgramme.Add(SNpi);
                        Caver.CaveB33.ContProgramme = Caver.CaveB33.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB33", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB33.ListSN.Add(SNpi);
                        Caver.CaveB33.Cont = Caver.CaveB33.ListSN.Count;
                    }
                }
                #endregion
                #region 仓B34
                Caver.CaveB34.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB34", "Eigenvector", "LINE"));
                Caver.CaveB34.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB34", "Eigenvector", "PN");
                Caver.CaveB34.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB34", "Eigenvector", "Remark"));
                Caver.CaveB34.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB34", "Eigenvector", "KCAndBF"));
                Caver.CaveB34.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB34", "Eigenvector", "Storeroom");
                Caver.CaveB34.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB34", "Eigenvector", "Augmented1");
                Caver.CaveB34.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB34", "Eigenvector", "Augmented2");
                Caver.CaveB34.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB34", "Eigenvector", "Augmented3");
                Caver.CaveB34.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB34", "Eigenvector", "Augmented4");
                Caver.CaveB34.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB34", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB34", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB34.ListSNProgramme.Add(SNpi);
                        Caver.CaveB34.ContProgramme = Caver.CaveB34.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB34", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB34.ListSN.Add(SNpi);
                        Caver.CaveB34.Cont = Caver.CaveB34.ListSN.Count;
                    }
                }
                #endregion
                #region 仓B35
                Caver.CaveB35.Eigenvector.LINEi = (LINE)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB35", "Eigenvector", "LINE"));
                Caver.CaveB35.Eigenvector.PN = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB35", "Eigenvector", "PN");
                Caver.CaveB35.Eigenvector.Remark = (Remark)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB35", "Eigenvector", "Remark"));
                Caver.CaveB35.Eigenvector.KCAndBF = (KCAndBF)Convert.ToInt16(XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB35", "Eigenvector", "KCAndBF"));
                Caver.CaveB35.Eigenvector.Storeroom = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB35", "Eigenvector", "Storeroom");
                Caver.CaveB35.Eigenvector.Augmented1 = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB35", "Eigenvector", "Augmented1");
                Caver.CaveB35.Eigenvector.Augmented2 = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB35", "Eigenvector", "Augmented2");
                Caver.CaveB35.Eigenvector.Augmented3 = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB35", "Eigenvector", "Augmented3");
                Caver.CaveB35.Eigenvector.Augmented4 = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB35", "Eigenvector", "Augmented4");
                Caver.CaveB35.Eigenvector.Mo = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB35", "Eigenvector", "MO");
                for (int i = 0; i < 20; i++)
                {
                    SNpi = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB35", string.Format("ListSNProgramme{0}", i + 1));
                    if (SNpi != "\"\"" && SNpi != "")
                    {
                        Caver.CaveB35.ListSNProgramme.Add(SNpi);
                        Caver.CaveB35.ContProgramme = Caver.CaveB35.ListSNProgramme.Count;

                    }

                    SNi = XmlOperater.ReadItemFromXml(caverBuffDataB3FeilName, "CaverBuffData", "CaverB35", string.Format("ListSN{0}", i + 1));
                    if (SNi != "\"\"" && SNi != "")
                    {
                        Caver.CaveB35.ListSN.Add(SNpi);
                        Caver.CaveB35.Cont = Caver.CaveB35.ListSN.Count;
                    }
                }
                #endregion
            }
            catch (Exception)
            {
            }
        }

        private static readonly object ProgrammeWarehousingWriteBufferLock = new object();
        /// <summary>
        /// 规划入仓将数据缓存
        /// </summary>
        /// <param name="number"></param>
        /// <param name="ind"></param>
        /// <param name="sna"></param>
        /// <param name="snb"></param>
        public static void ProgrammeWarehousingWriteBuffer(int number, int ind, string sna, string snb)
        {
            lock (ProgrammeWarehousingWriteBufferLock)
            {
                if (number < 200)
                {
                    if (number < 120)
                    {
                        //A1区
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSNProgramme{0}", ind + 1), sna);
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSNProgramme{0}", ind + 2), snb);
                    }
                    else if (number < 130)
                    {
                        //A2区
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSNProgramme{0}", ind + 1), sna);
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSNProgramme{0}", ind + 2), snb);
                    }
                    else if (number < 140)
                    {
                        //A3区
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSNProgramme{0}", ind + 1), sna);
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSNProgramme{0}", ind + 2), snb);
                    }

                }
                else
                {
                    if (number < 220)
                    {
                        //B1区
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSNProgramme{0}", ind + 1), sna);
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSNProgramme{0}", ind + 2), snb);
                    }
                    else if (number < 230)
                    {
                        //B2区
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSNProgramme{0}", ind + 1), sna);
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSNProgramme{0}", ind + 2), snb);
                    }
                    else if (number < 240)
                    {
                        //B3区
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSNProgramme{0}", ind + 1), sna);
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSNProgramme{0}", ind + 2), snb);
                    }
                }
            }

        }
        public static Action<int, int, string, string> ProgrammeWarehousingWriteBufferAction = (int number, int ind, string sna, string snb) => { ProgrammeWarehousingWriteBuffer(number, ind, sna, snb); };
        private static readonly object PracticalWarehousingWriteBufferLock = new object();
        /// <summary>
        /// 实际入仓将数据缓存
        /// </summary>
        /// <param name="number"></param>
        /// <param name="ind"></param>
        /// <param name="sna"></param>
        /// <param name="snb"></param>
        public static void PracticalWarehousingWriteBuffer(int number, int ind, string sna, string snb)
        {
            lock (PracticalWarehousingWriteBufferLock)
            {
                if (number < 200)
                {
                    if (number < 120)
                    {
                        //A1区
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSN{0}", ind + 1), sna);
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSN{0}", ind + 2), snb);
                    }
                    else if (number < 130)
                    {
                        //A2区
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSN{0}", ind + 1), sna);
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSN{0}", ind + 2), snb);
                    }
                    else if (number < 140)
                    {
                        //A3区
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSN{0}", ind + 1), sna);
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSN{0}", ind + 2), snb);
                    }

                }
                else
                {
                    if (number < 220)
                    {
                        //B1区
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSN{0}", ind + 1), sna);
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSN{0}", ind + 2), snb);
                    }
                    else if (number < 230)
                    {
                        //B2区
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSN{0}", ind + 1), sna);
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSN{0}", ind + 2), snb);
                    }
                    else if (number < 240)
                    {
                        //B3区
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSN{0}", ind + 1), sna);
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSN{0}", ind + 2), snb);
                    }
                }
            }

        }
        public static Action<int, int, string, string> PracticalWarehousingWriteBufferAction = (int number, int ind, string sna, string snb) => { PracticalWarehousingWriteBuffer(number, ind, sna, snb); };
        private static readonly object BufferDataClearanceLock = new object();
        /// <summary>
        /// 清仓时清除缓存
        /// </summary>
        /// <param name="number"></param>
        public static void BufferDataClearance(int number)
        {
            lock (BufferDataClearanceLock)
            {
                if (number < 200)
                {
                    if (number < 120)
                    {
                        //A1区
                        for (int i = 0; i < 20; i++)
                        {
                            XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSN{0}", i + 1), "");
                            XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSNProgramme{0}", i + 1), "");
                        }
                        XmlOperater.WriteItemToXml(caverBuffDataA1FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), "Eigenvector", "PN", "");
                    }
                    else if (number < 130)
                    {
                        //A2区
                        for (int i = 0; i < 20; i++)
                        {
                            XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSN{0}", i + 1), "");
                            XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSNProgramme{0}", i + 1), "");
                        }
                        XmlOperater.WriteItemToXml(caverBuffDataA2FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), "Eigenvector", "PN", "");
                    }
                    else if (number < 140)
                    {
                        //A3区
                        for (int i = 0; i < 20; i++)
                        {
                            XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSN{0}", i + 1), "");
                            XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), string.Format("ListSNProgramme{0}", i + 1), "");
                        }
                        XmlOperater.WriteItemToXml(caverBuffDataA3FeilName, "CaverBuffData", string.Format("CaverA{0}", number - 100), "Eigenvector", "PN", "");
                    }
                }
                else
                {
                    if (number < 220)
                    {
                        //B1区
                        for (int i = 0; i < 20; i++)
                        {
                            XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSN{0}", i + 1), "");
                            XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSNProgramme{0}", i + 1), "");
                        }
                        XmlOperater.WriteItemToXml(caverBuffDataB1FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), "Eigenvector", "PN", "");
                    }
                    else if (number < 230)
                    {
                        //B2区
                        for (int i = 0; i < 20; i++)
                        {
                            XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSN{0}", i + 1), "");
                            XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSNProgramme{0}", i + 1), "");
                        }
                        XmlOperater.WriteItemToXml(caverBuffDataB2FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), "Eigenvector", "PN", "");
                    }
                    else if (number < 240)
                    {
                        //B3区
                        for (int i = 0; i < 20; i++)
                        {
                            XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSN{0}", i + 1), "");
                            XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), string.Format("ListSNProgramme{0}", i + 1), "");
                        }
                        XmlOperater.WriteItemToXml(caverBuffDataB3FeilName, "CaverBuffData", string.Format("CaverB{0}", number - 200), "Eigenvector", "PN", "");
                    }
                }
            }


        }
        public static Action<int> BufferDataClearanceAction = (int number) => { BufferDataClearance(number); };
        private static readonly object WriteCaverEigenvectorLock = new object();
        public static void WriteCaverEigenvector(int number, ref CEigenvector cEigenvector)
        {
            lock (WriteCaverEigenvectorLock)
            {
                #region MyRegion
                string Feil = "";
                string Caver = "";
                if (number/100 == 1)
                {
                    //A区
                    switch ((number / 10) % 10)
                    {
                        case 1:
                            Feil = caverBuffDataA1FeilName;
                            switch (number%10)
                            {
                                case 1:
                                    Caver = "CaverA11";
                                    break;
                                case 2:
                                    Caver = "CaverA12";
                                    break;
                                case 3:
                                    Caver = "CaverA13";
                                    break;
                                case 4:
                                    Caver = "CaverA14";
                                    break;
                                case 5:
                                    Caver = "CaverA15";
                                    break;
                            }
                            break;
                        case 2:
                            Feil = caverBuffDataA2FeilName;
                            switch (number % 10)
                            {
                                case 1:
                                    Caver = "CaverA21";
                                    break;
                                case 2:
                                    Caver = "CaverA22";
                                    break;
                                case 3:
                                    Caver = "CaverA23";
                                    break;
                                case 4:
                                    Caver = "CaverA24";
                                    break;
                                case 5:
                                    Caver = "CaverA25";
                                    break;
                            }
                            break;
                        case 3:
                            Feil = caverBuffDataA3FeilName;
                            switch (number % 10)
                            {
                                case 1:
                                    Caver = "CaverA31";
                                    break;
                                case 2:
                                    Caver = "CaverA32";
                                    break;
                                case 3:
                                    Caver = "CaverA33";
                                    break;
                                case 4:
                                    Caver = "CaverA34";
                                    break;
                                case 5:
                                    Caver = "CaverA35";
                                    break;
                            }
                            break;
                    }
                }
                else
                {
                    //B区
                    switch ((number / 10) % 10)
                    {
                        case 1:
                            Feil = caverBuffDataB1FeilName;
                            switch (number % 10)
                            {
                                case 1:
                                    Caver = "CaverB11";
                                    break;
                                case 2:
                                    Caver = "CaverB12";
                                    break;
                                case 3:
                                    Caver = "CaverB13";
                                    break;
                                case 4:
                                    Caver = "CaverB14";
                                    break;
                                case 5:
                                    Caver = "CaverB15";
                                    break;
                            }
                            break;
                        case 2:
                            Feil = caverBuffDataB2FeilName;
                            switch (number % 10)
                            {
                                case 1:
                                    Caver = "CaverB21";
                                    break;
                                case 2:
                                    Caver = "CaverB22";
                                    break;
                                case 3:
                                    Caver = "CaverB23";
                                    break;
                                case 4:
                                    Caver = "CaverB24";
                                    break;
                                case 5:
                                    Caver = "CaverB25";
                                    break;
                            }
                            break;
                        case 3:
                            Feil = caverBuffDataB3FeilName;
                            switch (number % 10)
                            {
                                case 1:
                                    Caver = "CaverB31";
                                    break;
                                case 2:
                                    Caver = "CaverB32";
                                    break;
                                case 3:
                                    Caver = "CaverB33";
                                    break;
                                case 4:
                                    Caver = "CaverB34";
                                    break;
                                case 5:
                                    Caver = "CaverB35";
                                    break;
                            }
                            break;
                    }
                }

                XmlOperater.WriteItemToXml(Feil, "CaverBuffData", Caver, "Eigenvector", "LINE", ((int)cEigenvector.LINEi).ToString());
                XmlOperater.WriteItemToXml(Feil, "CaverBuffData", Caver, "Eigenvector", "PN", cEigenvector.PN);
                XmlOperater.WriteItemToXml(Feil, "CaverBuffData", Caver, "Eigenvector", "Remark", ((int)cEigenvector.Remark).ToString());
                XmlOperater.WriteItemToXml(Feil, "CaverBuffData", Caver, "Eigenvector", "KCAndBF", ((int)cEigenvector.KCAndBF).ToString());
                XmlOperater.WriteItemToXml(Feil, "CaverBuffData", Caver, "Eigenvector", "Storeroom", cEigenvector.Storeroom);
                XmlOperater.WriteItemToXml(Feil, "CaverBuffData", Caver, "Eigenvector", "Augmented1", cEigenvector.Augmented1);
                XmlOperater.WriteItemToXml(Feil, "CaverBuffData", Caver, "Eigenvector", "Augmented2", cEigenvector.Augmented2);
                XmlOperater.WriteItemToXml(Feil, "CaverBuffData", Caver, "Eigenvector", "Augmented3", cEigenvector.Augmented3);
                XmlOperater.WriteItemToXml(Feil, "CaverBuffData", Caver, "Eigenvector", "Augmented4", cEigenvector.Augmented4);
                XmlOperater.WriteItemToXml(Feil, "CaverBuffData", Caver, "Eigenvector", "MO", cEigenvector.Mo);
                #endregion
            }

        }
        public static Action<int, CEigenvector> WriteCaverEigenvectorAction = (int number, CEigenvector cEigenvector) => { WriteCaverEigenvector(number, ref cEigenvector); };
        #endregion
    }
}
